package com.haoze.nurseapp.service;

import com.haoze.common.model.OrdersFileIndexEntity;
import com.haoze.common.response.Result;
import com.haoze.nurseapp.model.EmrFileIndexEntity;
import com.haoze.nurseapp.model.TaskExecuteDetailEntity;
import com.haoze.nurseapp.model.TaskNodeEntity;

import java.time.LocalDateTime;

/**
 * @author zh
 */
public interface TaskService {
    /**
     * 创建任务
     * @param taskExecuteId
     * @param batchNo
     * @param inpatorderdataId
     * @param execeted
     * @param taskNodeEntity
     * @param emrFileIndex
     * @param localDateTime
     * @param orderQrCode
     * @param startNode
     * @param userId
     * @return
     */
    TaskExecuteDetailEntity createTaskExecute(String taskExecuteId, Long batchNo, String inpatorderdataId, String execeted, TaskNodeEntity taskNodeEntity,
                                              OrdersFileIndexEntity emrFileIndex, LocalDateTime localDateTime, String orderQrCode, String startNode, String userId);

    /**
     * 创建下一节点任务
     * @param userId
     * @param inpatNum
     * @param qrCode
     * @param currentDetailId
     * @param inpatorderdataId
     * @param batchNo
     * @param groupId
     * @param executeBeginTime
     * @param orderQrCode
     * @return
     */
    Result createNextTaskNode(String userId, String inpatNum, String qrCode, String currentDetailId, String inpatorderdataId,
                                     Long batchNo, String groupId, String executeBeginTime, String orderQrCode);
}
